//
//  FlyInputView.h
//  MedicalProject
//
//  Created by lifayu on 16/12/15.
//  Copyright © 2016年 贵阳飞云科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>

/**
 输入框  包含一个imageView 一个textfield 一根下划线 当开始输入的时候 改变图片和下滑线颜色
 */

@protocol FlyInputViewDelegate <UITextFieldDelegate>


@end

@interface FlyInputView : UIView<UITextFieldDelegate>

@property (strong, nonatomic) UIImageView *imageView;
@property (strong, nonatomic) UITextField *textFiled;
@property (strong, nonatomic) UIView *lineView;

@property (strong, nonatomic) IBInspectable UIImage *normalImage;
@property (strong, nonatomic) IBInspectable UIImage *editingImage;

@property (strong, nonatomic) IBInspectable UIColor *normalColor;
@property (strong, nonatomic) IBInspectable UIColor *editingColor;

@property (assign, nonatomic) IBInspectable CGFloat normalLineSpace;
@property (assign, nonatomic) IBInspectable CGFloat editingLineSpace;


//textfield
@property (assign, nonatomic) IBInspectable NSInteger limitLength;

@property (assign, nonatomic) IBInspectable CGFloat textFont;

@property (strong, nonatomic) IBInspectable NSString *text;

@property (strong, nonatomic) IBInspectable UIColor *textColor;

@property (strong, nonatomic) IBInspectable UIColor *palceHolderColor;

@property (strong, nonatomic) IBInspectable NSString *palceHolder;

@property (assign, nonatomic) IBInspectable BOOL isSecurity;

@property (assign, nonatomic) BOOL  editAble;



@property (weak, nonatomic) id<FlyInputViewDelegate> delegate;


@end
